/*
 * Copyright (C) 2011  Xu Haojie
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package net.poemcode.gzlib.search;

import android.os.Parcel;
import android.os.Parcelable;

public class SearchResult implements Parcelable {

	private String bookrecno;
	
	private String author;
	
	private String classno;
	
	private String isbn;
	
	private String page;
	
	private String price;
	
	private String publisher;
	
	private String pubdate;
	
	private String title;
	
	private String subject;
	
	private String booktype;

	private SearchResult(Parcel in) {
		author = in.readString();
		bookrecno = in.readString();
		booktype = in.readString();
		classno = in.readString();
		isbn = in.readString();
		page = in.readString();
		price = in.readString();
		pubdate = in.readString();
		publisher = in.readString();
		subject = in.readString();
		title = in.readString();
	}

	public SearchResult() {
	}

	public String getBookrecno() {
		return bookrecno;
	}

	public void setBookrecno(String bookrecno) {
		this.bookrecno = bookrecno;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getClassno() {
		return classno;
	}

	public void setClassno(String classno) {
		this.classno = classno;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getPubdate() {
		return pubdate;
	}

	public void setPubdate(String pubdate) {
		this.pubdate = pubdate;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getBooktype() {
		return booktype;
	}

	public void setBooktype(String booktype) {
		this.booktype = booktype;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(author);
		dest.writeString(bookrecno);
		dest.writeString(booktype);
		dest.writeString(classno);
		dest.writeString(isbn);
		dest.writeString(page);
		dest.writeString(price);
		dest.writeString(pubdate);
		dest.writeString(publisher);
		dest.writeString(subject);
		dest.writeString(title);
	}

	public static final Parcelable.Creator<SearchResult> CREATOR = new Parcelable.Creator<SearchResult>() {

		@Override
		public SearchResult createFromParcel(Parcel source) {
			return new SearchResult(source);
		}

		@Override
		public SearchResult[] newArray(int size) {
			return new SearchResult[size];
		}
	};
}
